<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="c" uri="jstl" %>
<%@taglib prefix="fn" uri="jstl-fn" %>
<%
	Object errorsM = request.getAttribute( "org.apache.struts.action.ERROR" ) ;

	if( errorsM == null )
		errorsM = request.getSession( true ).getAttribute( "org.apache.struts.action.ERROR" ) ;
	
	org.apache.struts.action.ActionErrors errors = null ;
	
	// en caso de que sea no null y de tipo org.apache.struts.action.ActionErrors
	if( errorsM != null && errorsM instanceof org.apache.struts.action.ActionErrors )
		errors = ( org.apache.struts.action.ActionErrors ) errorsM ;
	
	// en caso de que haya errores
	if( errors != null && errors.size( ) > 0 )
	{
		System.out.println( "PrintMessages : " + errors.size( ) ) ;
		System.out.println( "PrintMessages : " + errors.size( "EventoDateEmpty" ) ) ;
%>
<div style="width: 400px ; height: 255px; border: 1px solid black ;display: block ; position: absolute; top: 100px; left: 100px; background-color: white;" id="errores">
	<div style="width: 400px; height: 25px; ">
		<table width="100%">
			<tr>
				<td align="center" width="90%" style="border-bottom: 1px solid black ;">
					<font color="red"><b>Errores</b></font>
				</td>
				<td align="right" style="border-bottom: 1px solid black ;">
					<div onmouseover="this.style.cursor='pointer';" onmouseout="this.style.cursor='default';" style="text-align: center; border: 1px solid black; background-color: lightgray; width: 15px; height: 20px; font-weight: bold;" onclick="document.getElementById('errores').style.display='none';">x</div>
				</td>
			</tr>
		</table>
	</div>
	<div class="errors" style="width: 366px; padding-left: 25px; overflow: auto; height: 230px;">
	<html:errors/>
	</div>
</div>
<%
	}
	
%>